import requests

class Base:
    def __init__(self):
        self.url = 'http://47.113.229.131:9080/'
        self.session = requests.session()

    def request(self,method,path,**kwargs):
        url = f'{self.url}{path}'
        response = self.session.request(method,url,**kwargs)
        return response

    def post(self,path,**kwargs):
        return self.request('POST',path,**kwargs)

    def get(self,path,**kwargs):
        return self.request('GET',path,**kwargs)

    def put(self,path,**kwargs):
        return self.request('PUT',path,**kwargs)

    def delete(self,path,**kwargs):
        return self.request('DELETE',path,**kwargs)